using System;
using System.Diagnostics;

namespace Abstract2ion
{
	public class ProcessWrapper : IProcess
	{
		private readonly Process _process;

		public ProcessWrapper(Process process)
		{
			if (process == null)
			{
				throw new ArgumentNullException("process");
			}

			_process = process;
		}

		public void WaitForExit()
		{
			_process.WaitForExit();
		}

		public int ExitCode
		{
			get { return _process.ExitCode; }
		}
	}
}